package com.lt.common;

import android.os.Build;

import com.lt.LibConstant;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class CommonUtils {
    public static Charset charsetUtf8() {
        if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {
            return StandardCharsets.UTF_8;
        } else {
            return Charset.forName(LibConstant.UTF_8);
        }
    }
}
